import React from "react";

// 子组件
class ProductInfo extends React.Component {
  render() {
    const { item } = this.props
    return (
      <div>
        <img src={item.url} alt="" width={'100%'} height={300}/>
        <h2>{item.message}</h2>
        <div>$: {item.price}</div>
      </div>
    );
  }
}

export default ProductInfo;
